def list_index(lt: list, n: int) -> int:
    if n > len(lt)-1:
        return -1
    else:
        return lt[n]
print(list_index([1,2,3],2))
